package query

import "ssdevice/common/dto"

type SysReportFormsQuery struct {
	dto.Pagination `search:"-"`
	dto.OrderBy    `search:"-"`
	dto.UserInfo
	Id     string   `form:"id" json:"id" search:"type:exact;column:id;table:sys_report_forms"`
	Name   string   `form:"name"  search:"type:contains;column:name;table:sys_report_forms"`
	UserId string   `form:"userId"  search:"type:exact;column:user_id;table:sys_report_forms"`
	IdIn   []string `form:"idIn" search:"type:in;column:id;table:sys_report_forms"`
}

func (m *SysReportFormsQuery) GetNeedSearch() interface{} {
	return *m
}

type SysReportStatQuery struct {
	dto.Pagination `search:"-"`
	dto.OrderBy    `search:"-"`
	dto.UserInfo
	Conditions []ReportStatItem `json:"conditions" `
}

type ReportStatItem struct {
	Sn        string `json:"sn" `
	Key       string `json:"key" `
	StartTime string `json:"startTime" `
	EndTime   string `json:"endTime" `
}
